//
//  AppDelegate.m
//  oc_demo
//
//  Created by haigui on 2021/5/27.
//

#import "AppDelegate.h"
#import "BaseNavigationController.h"
#import "MainViewController.h"
#import <IQKeyboardManager/IQKeyboardManager.h>
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    
    BaseNavigationController *baseNav = [[BaseNavigationController alloc]initWithRootViewController:[[MainViewController alloc]init]];
    
    //配置键盘
    [self configIQKeyboardManager];
    
    self.window.rootViewController = baseNav;
    [self.window makeKeyAndVisible];
    
    return YES;
}
//配置键盘
- (void)configIQKeyboardManager{
    [IQKeyboardManager sharedManager].shouldResignOnTouchOutside = YES;
    [IQKeyboardManager sharedManager].enableAutoToolbar = NO;
//    [[IQKeyboardManager sharedManager] setKeyboardDistanceFromTextField:0];
}
@end
